package top.tangyh.basic.spring_mvc.manager.impl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.tangyh.basic.spring_mvc.manager.SuperManagerImpl;
import top.tangyh.basic.spring_mvc.entity.BasePosition;
import top.tangyh.basic.spring_mvc.manager.BasePositionManager;
import top.tangyh.basic.spring_mvc.mapper.BasePositionMapper;
/**
 * <p>
 * 通用业务实现类
 * 岗位
 * </p>
 *
 * @author CJ
 * @date 2021-10-18
 * @create [2021-10-18] [zuihou] [代码生成器生成]
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class BasePositionManagerImpl extends SuperManagerImpl<BasePositionMapper, BasePosition> implements BasePositionManager {
     @Autowired
     public BasePositionMapper basePositionMapper;
    /**
     *
     * [描述]:可以自身实现save方法，也可以继承SuperServiceImpl，并重写save方法
     * @Autowired
     * public BasePositionMapper basePositionMapper;
     *
     * 方法一：重载父类并调用super save方法
     *     @Override
     *     public boolean save(BasePosition entity) {
     *         return super.save(entity);
     *     }
     * 方法二：重写父类save方法，调用自身basePositionMapper
     *     @Override
     *     public boolean save(BasePosition entity) {
     *         //下钻到basePositionMapper 岗位Mapper层(mybatisplus)
     *         return Boolean.valueOf(String.valueOf(basePositionMapper.insert(entity)));
     *     }
     */
}
